package entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Contest entity. @author MyEclipse Persistence Tools
 */

public class Contest implements java.io.Serializable {

	// Fields

	

	private Integer contestId;
	private Integer sponsorId;
	private String contestName;
	private String contestStartTime;
	private String contestEndTime;
	private String signupStartTime;
	private String signupEndTime;
	private Integer hotDegree;
	private Integer signupNumber;
	private String contestUrl;
	private String status;
	private String contestDetail;
	private String contestImgUrl;
	private Set follows = new HashSet(0);
	private Set sorts = new HashSet(0);
	private Set participates = new HashSet(0);
	private Set classbyKeyWords = new HashSet(0);
	private Set commentses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Contest() {
	}

	/** minimal constructor */
	public Contest(String contestUrl) {
		this.contestUrl = contestUrl;
	}

	/** full constructor */
	public Contest(Integer sponsorId, String contestName,
			String contestStartTime, String contestEndTime,
			String signupStartTime, String signupEndTime, Integer hotDegree,
			Integer signupNumber, String contestUrl, String status,
			String contestDetail, String contestImgUrl, Set follows, Set sorts,
			Set participates, Set classbyKeyWords, Set commentses) {
		this.sponsorId = sponsorId;
		this.contestName = contestName;
		this.contestStartTime = contestStartTime;
		this.contestEndTime = contestEndTime;
		this.signupStartTime = signupStartTime;
		this.signupEndTime = signupEndTime;
		this.hotDegree = hotDegree;
		this.signupNumber = signupNumber;
		this.contestUrl = contestUrl;
		this.status = status;
		this.contestDetail = contestDetail;
		this.contestImgUrl = contestImgUrl;
		this.follows = follows;
		this.sorts = sorts;
		this.participates = participates;
		this.classbyKeyWords = classbyKeyWords;
		this.commentses = commentses;
	}

	// Property accessors

	public Integer getContestId() {
		return this.contestId;
	}

	public void setContestId(Integer contestId) {
		this.contestId = contestId;
	}

	public Integer getSponsorId() {
		return this.sponsorId;
	}

	public void setSponsorId(Integer sponsorId) {
		this.sponsorId = sponsorId;
	}

	public String getContestName() {
		return this.contestName;
	}

	public void setContestName(String contestName) {
		this.contestName = contestName;
	}

	public String getContestStartTime() {
		return this.contestStartTime;
	}

	public void setContestStartTime(String contestStartTime) {
		this.contestStartTime = contestStartTime;
	}

	public String getContestEndTime() {
		return this.contestEndTime;
	}

	public void setContestEndTime(String contestEndTime) {
		this.contestEndTime = contestEndTime;
	}

	public String getSignupStartTime() {
		return this.signupStartTime;
	}

	public void setSignupStartTime(String signupStartTime) {
		this.signupStartTime = signupStartTime;
	}

	public String getSignupEndTime() {
		return this.signupEndTime;
	}

	public void setSignupEndTime(String signupEndTime) {
		this.signupEndTime = signupEndTime;
	}

	public Integer getHotDegree() {
		return this.hotDegree;
	}

	public void setHotDegree(Integer hotDegree) {
		this.hotDegree = hotDegree;
	}

	public Integer getSignupNumber() {
		return this.signupNumber;
	}

	public void setSignupNumber(Integer signupNumber) {
		this.signupNumber = signupNumber;
	}

	public String getContestUrl() {
		return this.contestUrl;
	}

	public void setContestUrl(String contestUrl) {
		this.contestUrl = contestUrl;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getContestDetail() {
		return this.contestDetail;
	}

	public void setContestDetail(String contestDetail) {
		this.contestDetail = contestDetail;
	}

	public String getContestImgUrl() {
		return this.contestImgUrl;
	}

	public void setContestImgUrl(String contestImgUrl) {
		this.contestImgUrl = contestImgUrl;
	}

	public Set getFollows() {
		return this.follows;
	}

	public void setFollows(Set follows) {
		this.follows = follows;
	}

	public Set getSorts() {
		return this.sorts;
	}

	public void setSorts(Set sorts) {
		this.sorts = sorts;
	}

	public Set getParticipates() {
		return this.participates;
	}

	public void setParticipates(Set participates) {
		this.participates = participates;
	}

	public Set getClassbyKeyWords() {
		return this.classbyKeyWords;
	}

	public void setClassbyKeyWords(Set classbyKeyWords) {
		this.classbyKeyWords = classbyKeyWords;
	}

	public Set getCommentses() {
		return this.commentses;
	}

	public void setCommentses(Set commentses) {
		this.commentses = commentses;
	}
	
	@Override
	public String toString() {
		return "Contest [contestId=" + contestId + ", sponsorId=" + sponsorId
				+ ", contestName=" + contestName + ", contestStartTime="
				+ contestStartTime + ", contestEndTime=" + contestEndTime
				+ ", signupStartTime=" + signupStartTime + ", signupEndTime="
				+ signupEndTime + ", hotDegree=" + hotDegree
				+ ", signupNumber=" + signupNumber + ", contestUrl="
				+ contestUrl + ", status=" + status + ", contestDetail="
				+ contestDetail + ", contestImgUrl=" + contestImgUrl
				+ ", follows=" + follows + ", sorts=" + sorts
				+ ", participates=" + participates + ", classbyKeyWords="
				+ classbyKeyWords + ", commentses=" + commentses + "]";
	}

}